home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / compress / xpack164.zip / XPODSDMO.BAT < prev   
DOS Batch File  |  1996-09-08  |  3KB  |  100 lines

  1. echo off
  2. CLS
  3. echo This is a quick demo of the operation of
  4. echo XPACK OnLine DeCompression System.
  5. echo XPACK compresses files - all sorts of files -
  6. echo to give you more free space on your disk.
  7. echo And it automatically expands these files when accessed,
  8. echo allowing you to use your files just as before.
  9. echo.
  10. PAUSE
  11. CLS
  12. echo Checking out drive free space before proceeding with demo.
  13. COPY %0.BAT EXAMPLE.ODS
  14.  IF EXIST XPACK.COM GOTO PROCEED
  15. echo The file XPACK.COM should be on current drive (path) for this demo.
  16. GOTO DEMOEND
  17. :PROCEED
  18. DEL EXAMPLE.OD1
  19. COPY EXAMPLE.ODS EXAMPLE.OD1
  20. IF EXIST EXAMPLE.OD1 GOTO PROCEED1
  21. echo There is not enough free space on current drive,
  22. echo or the disk is write protected.
  23. GOTO DEMOEND
  24. :PROCEED1
  25. DEL EXAMPLE.OD1
  26. echo.
  27. echo O.K. Can proceed with demo.
  28. PAUSE
  29. CLS
  30.  XPACK -z
  31.  rem exit code 25 means cannot install xpack online decompression system
  32.  IF ERRORLEVEL 25 GOTO DEMOEND
  33. echo.
  34. echo XPACK is now RAM resident. This is needed to use
  35. echo compressed data file. To compress a file is simple:
  36. DIR *.ODS
  37. echo.
  38. echo XPACK will compress EXAMPLE.ODS as an example.
  39. PAUSE
  40. XPACK -pd EXAMPLE.ODS
  41. rem IF ERRORLEVEL 1 GOTO DEMOEND
  42. echo.
  43. PAUSE
  44. CLS
  45. echo To use the compressed file is even simpler.
  46. echo If XPACK is RAM resident and active (XPACK -z+),
  47. echo and enough disk space is free to hold the un-compressed file,
  48. echo XPACK automatically expands the file when accessed,
  49. echo allowing it to be used just as before. You could TYPE the
  50. echo file, for instance.
  51. PAUSE
  52. TYPE EXAMPLE.ODS
  53. PAUSE
  54. CLS
  55. echo For backup, copying, etc., XPACK may be turned OFF. This allows
  56. echo a compressed file to be accessed without automatic expansion.
  57. echo Type XPACK -z- to do this and you can then copy or display compressed
  58. echo files, or manipulate them in any other way. For example:
  59. echo.
  60. echo XPACK -z-
  61.  XPACK -z-
  62. echo.
  63. echo.
  64. echo COPY EXAMPLE.ODS EXAMPLE.OD1
  65. COPY EXAMPLE.ODS EXAMPLE.OD1
  66. pause
  67. echo.
  68. echo DIR EXAMPLE.OD?
  69. DIR EXAMPLE.OD?
  70. PAUSE
  71. CLS
  72. echo Do not try to use a compressed data file when XPACK is OFF,
  73. echo or before XPACK is loaded by the first XPACK -z command.
  74. echo The file will not then make sense.
  75. echo.
  76. echo.
  77. echo.
  78. PAUSE
  79. CLS
  80. echo Compressed data files may be de-compressed by the XPACK -ud command.
  81. echo eg XPACK -ud EXAMPLE.ODS
  82. echo.
  83. XPACK -ud EXAMPLE.ODS
  84. echo.
  85. echo.
  86. DIR EXAMPLE.ODS
  87. PAUSE
  88. DEL EXAMPLE.ODS
  89. DEL EXAMPLE.OD1
  90. CLS
  91. echo For a quick reference to XPACK commands, just type XPACK.
  92. PAUSE
  93. echo.
  94. XPACK
  95. echo.
  96. :DEMOEND
  97. echo.
  98. echo This concludes the demonstration.
  99. echo.
  100.